<div id="da-main-nav" class="da-button-container">
    <ul>
        <li<?php if($this->menu_parent_selected == 'default'):?> class="active"<?php endif?>>
            <a href="<?php echo $this->createUrl('/admin')?>">
                <span class="da-nav-icon">
                    <img src="<?php echo $this->themeUrl?>/files/theme/images/icons/black/32/home.png" />
                </span>
                Đại bản doanh
            </a>
        </li>
        
        <?php if($this->manager->isStaffOnly):?>
        <li<?php if($this->menu_parent_selected == 'manager'):?> class="active"<?php endif?>>
            <a href="<?php echo $this->createUrl('/admin/manager/update')?>">
                <span class="da-nav-icon">
                    <img src="<?php echo $this->themeUrl?>/files/theme/images/icons/black/32/admin_user_2.png"/>
                </span>
                Cập nhật tài khoản
            </a>
        </li>
        <?php else:?>
        <li<?php if($this->menu_parent_selected == 'manager'):?> class="active"<?php endif?>>
            <a href="<?php echo $this->createUrl('/admin/manager')?>">
                <span class="da-nav-count"><?php echo $this->manager_count?></span>
                <span class="da-nav-icon">
                    <img src="<?php echo $this->themeUrl?>/files/theme/images/icons/black/32/admin_user_2.png"/>
                </span>
                Nhân viên
            </a>
            <ul class="<?php echo ($this->menu_parent_selected == 'manager') ? 'opened':'closed'?>">
                <li<?php if($this->menu_child_selected == 'manager_create'):?> class="active"<?php endif?>><a href="<?php echo $this->createUrl('/admin/manager/create')?>">Thêm nhân viên</a></li>
                <li<?php if($this->menu_child_selected == 'manager'):?> class="active"<?php endif?>><a href="<?php echo $this->createUrl('/admin/manager')?>">Quản lý nhân viên</a></li>
            </ul>
        </li>
        <?php endif?>
        
        <li<?php if($this->menu_parent_selected == 'post'):?> class="active"<?php endif?>>
            <a href="<?php echo $this->createUrl('/admin/post')?>">
                <span class="da-nav-count"><?php echo number_format($this->post_count)?></span>
                <span class="da-nav-icon">
                    <img src="<?php echo $this->themeUrl?>/files/theme/images/icons/black/32/images_2.png" />
                </span>
                Bài viết
            </a>
            <ul class="<?php echo ($this->menu_parent_selected == 'post') ? 'opened':'closed'?>">
                <li<?php if($this->menu_child_selected == 'post_create'):?> class="active"<?php endif?>><a href="<?php echo $this->createUrl('/admin/post/create')?>">Đăng bài</a></li>
                <li<?php if($this->menu_child_selected == 'post'):?> class="active"<?php endif?>><a href="<?php echo $this->createUrl('/admin/post')?>">Quản lý bài</a></li>
            </ul>
        </li>
        
        <li<?php if($this->menu_parent_selected == 'customer'):?> class="active"<?php endif?>>
            <a href="<?php echo $this->createUrl('/admin/customer')?>">
                <span class="da-nav-count"><?php echo number_format($this->customer_count)?></span>
                <span class="da-nav-icon">
                    <img src="<?php echo $this->themeUrl?>/files/theme/images/icons/black/32/admin_user.png" />
                </span>
                Khách hàng
            </a>
            <ul class="<?php echo ($this->menu_parent_selected == 'customer') ? 'opened':'closed'?>">
                <?php /*<li<?php if($this->menu_child_selected == 'customer_create'):?> class="active"<?php endif?>><a href="<?php echo $this->createUrl('/admin/customer/create')?>">Tạo đơn hàng</a></li>*/?>
                <li<?php if($this->menu_child_selected == 'customer_index'):?> class="active"<?php endif?>><a href="<?php echo $this->createUrl('/admin/customer/index')?>">Quản lý khách hàng</a></li>
            </ul>
        </li>
        
        <li<?php if($this->menu_parent_selected == 'bill'):?> class="active"<?php endif?>>
            <a href="<?php echo $this->createUrl('/admin/bill')?>">
                <span class="da-nav-count"><?php echo number_format($this->bill_count)?></span>
                <span class="da-nav-icon">
                    <img src="<?php echo $this->themeUrl?>/files/theme/images/icons/black/32/create_write.png" />
                </span>
                Đơn hàng
            </a>
            <ul class="<?php echo ($this->menu_parent_selected == 'bill') ? 'opened':'closed'?>">
                <li<?php if($this->menu_child_selected == 'bill_create'):?> class="active"<?php endif?>><a href="<?php echo $this->createUrl('/admin/bill/create')?>">Tạo đơn hàng</a></li>
                <li<?php if($this->menu_child_selected == 'bill'):?> class="active"<?php endif?>><a href="<?php echo $this->createUrl('/admin/bill')?>">Quản lý đơn hàng</a></li>

                <li<?php if($this->menu_child_selected == 'bill_paylist_create'):?> class="active"<?php endif?>><a href="<?php echo $this->createUrl('/admin/bill/paylistCreate')?>">Tạo Paylist</a></li>
                <li<?php if($this->menu_child_selected == 'bill_paylist'):?> class="active"<?php endif?>><a href="<?php echo $this->createUrl('/admin/bill/paylist')?>">Quản lý Paylist</a></li>

            </ul>
        </li>
        
        <li<?php if($this->menu_parent_selected == 'item'):?> class="active"<?php endif?>>
            <a href="<?php echo $this->createUrl('/admin/item')?>">
                <span class="da-nav-count"><?php echo number_format($this->item_count)?></span>
                <span class="da-nav-icon">
                    <img src="<?php echo $this->themeUrl?>/files/theme/images/icons/black/32/abacus.png" />
                </span>
                Giá
            </a>
            <ul class="<?php echo ($this->menu_parent_selected == 'item') ? 'opened':'closed'?>">
                <li<?php if($this->menu_child_selected == 'item_create'):?> class="active"<?php endif?>><a href="<?php echo $this->createUrl('/admin/item/create')?>">Thêm giá</a></li>
                <li<?php if($this->menu_child_selected == 'item'):?> class="active"<?php endif?>><a href="<?php echo $this->createUrl('/admin/item')?>">Quản lý giá</a></li>
            </ul>
        </li>
        
    </ul>
</div>